<!DOCTYPE html>
<html>
  <head>
    <title>toggle.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<style type="text/css">

.show{
border:1px solid green;
}

</style>

  <script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script></head>
  <script type="text/javascript">
$(document).ready(function(){
	$("img").click(function(){
	alert(1);
	alert(2);
		$("#div1").text("<p>这是一个page标签</P>");
		$("#div2").html("<p>这是一个page1标签</P>");
		$(this).toggleClass("show");
	
	});

});

</script>
  <body>
    <img alt="图片" src="../images/tiger.jpg"/>
    <div id="div1"></div>
    <div id="div2"></div>
  </body>
</html>
